<script lang="ts" setup>
import { ref } from 'vue';
const active = ref('home');
</script>

<template>
    <div class="footer" v-if="$route.meta.hidden">
        <van-tabbar v-model="active" route>
            <van-tabbar-item name="home" to="/" icon="wap-home-o">首页</van-tabbar-item>
            <van-tabbar-item name="video" to="/video" icon="video-o">视频</van-tabbar-item>
            <van-tabbar-item name="message" to="/message" icon="chat-o" dot>消息</van-tabbar-item>
            <van-tabbar-item name="mylogin" to="/mylogin" icon="contact-o">我的</van-tabbar-item>
        </van-tabbar>
    </div>
</template>